/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.creational.abstractfactory;

/**
 *
 * @author BassonCJ
 */
public class AnimalFactory {
    public Animal getAnimal(String name){
        if(name.equalsIgnoreCase("dog")){
            return new Dog();
        }
        else
            return new Cat();
    }
}
